#ifndef GOIINDEX_H_
#define GOIINDEX_H_

#include <MAUI/Screen.h>
#include <MAUI/ListBox.h>
#include <MAUtil/Map.h>

#include "../DAOs/DTO.h"
#include "../DAOs/GOIProcessor.h"
#include "../Widgets/UIBuilder.h"
#include "../Widgets/LRESItemWidget.h"
#include "MessageBox.h"

using namespace MAUI;
using namespace MAUtil;

class GOIIndex : public Screen, public GOIListener, public WidgetListener, public MessageBoxListener {
public:
	GOIIndex();
	~GOIIndex();
	void keyPressEvent(int keyCode, int nativeCode);
	void itemReceived(GOIItem& item);
	void processingComplete();
	void triggered(Widget* sender);
	void pointerPressEvent(MAPoint2d point);
	void pointerReleaseEvent(MAPoint2d point);
	void show();
	void actionIndex(int index);
private:
	GOIProcessor* mProcessor;
	Layout* mLayout;
	ListBox* mItems;
	Label* mTitle;
	Widget* mSoftkey;
	bool _getData;
};

#endif /* GOIINDEX_H_ */
